
var outHtml="<div id=\"pop\"  style=\"filter:RevealTrans ( duration = 0.4,transition=19 );overflow:hidden;position: absolute;z-index:1000;width:97%;height:100%;visibility:hidden\" ><iframe name=\"wframe\" id=\"wframe\" src=\"\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\"></iframe></div>";
var icoUrl = "<div style=\"background:#fff;font-size:12px;filter:progid:DXImageTransform.Microsoft.Shadow(Color=#ff666666, Strength=100, Direction=135);border-bottom:1px solid #999999;border-right:1px solid #999999;border-left:1px solid #999999; background-color:#eeeeee;width:97%;height:100%;\"><table width=\"100%\" border=\"0\" height=\"100%\"><tr><td height=\"25\" style='background-image:url(../static/img/title_bg_left.gif);width:4px'>&nbsp;</td><td   style='background-image:url(../static/img/title_bg_mid.gif)'>&nbsp;</td><td  style='background-image:url(../static/img/title_bg_right.gif);width:4px'>&nbsp;</td></tr><tr><td colspan=\"3\" align=\"center\" valign=\"middle\" >&nbsp;</td></tr></table></div>";
document.write(outHtml);
var eventObj;
function showWin(url,width,height,eventObj_){
	    var obj = document.getElementById("pop");
	    var obj1 = document.getElementById("wframe");
	    var event = arguments.callee.caller.arguments[0] || window.event;
	    var curObj=event.srcElement ? event.srcElement : event.target;
		if(eventObj!=curObj){
			obj.style.display = "none"; 
			obj.style.visibility = "hidden";
		}
		eventObj = eventObj_;
		if (document.all){//IE
	        objWframe = document.wframe;
		}else{//Firefox    
		    objWframe = document.getElementById("wframe").contentWindow;
		}
		objWframe.document.body.innerHTML=icoUrl;
		//alert("aaa");
		objWframe.location=url;
		obj.style.display = "block"; 
		obj.style.width = width + "px"; 
		obj.style.height = height + "px"; 
		obj.style.top = "100%"; 
		obj.style.pixelLeft=getPos(eventObj_,"Left")+0;
		obj.style.pixelTop=getPos(eventObj_,"Top")+0;
		obj.style.left='30%';
		 var filter=obj.filters;
		 if(filter==null) //用于Chrome等浏览器
		 {
		   obj.style.opacity=100/100.0; //注意透明度取值为0~1之间
		 }
		 else//用于IE、360等浏览器
		 {
			obj.filters[0].transition =19 ; 
			obj.filters[0].Apply();
	  		obj.filters[0].Play();
		 }
		obj.style.visibility = "visible"; 
		obj1.style.visibility = "visible"; 
}

function showDiv(url,width,height){
	
	showPop(width,height);
}
function showPop(width,height){ 
	
} 
function hidePop(){ 
var obj =document.getElementById("pop");
obj.style.display = "none"; 
obj.style.visibility = "hidden";
} 
function getPos(el,ePro){
		var ePos=0;
		while(el!=null)
		{  
		      ePos+=el["offset"+ePro];
		      el=el.offsetParent;
		}
		return ePos;
}
function bodyClose(){
	var obj = document.getElementById("pop");
	if(eventObj!=event.srcElement && obj.style.visibility=="visible"){
		obj.style.display = "none"; 
		obj.style.visibility = "hidden";
	}
}


if (document.all){
	window.document.body.attachEvent("onclick", bodyClose);
}//IE
else{
	window.addEventListener("onclick", bodyClose,false);
} //FireFox


//var eventObj;
//function showSN(url,width,height,eventObj_){
//	    var obj = document.getElementById("pop");
//	    var obj1 = document.getElementById("wframe");
//	    var event = arguments.callee.caller.arguments[0] || window.event;
//	    var curObj=event.srcElement ? event.srcElement : event.target;
//		if(eventObj!=curObj){
//			obj.style.display = "none"; 
//			obj.style.visibility = "hidden";
//		}
//		eventObj = eventObj_;
//		if (document.all){//IE
//	        objWframe = document.wframe;
//		}else{//Firefox    
//		    objWframe = document.getElementById("wframe").contentWindow;
//		}
//		objWframe.document.body.innerHTML=icoUrl;
//		objWframe.location=url;
//		obj.style.display = "block"; 
//		obj.style.width = width + "px"; 
//		obj.style.height = height + "px"; 
//		obj.style.top = "180%";
//		obj.style.left = "46%";
//		obj.style.pixelLeft=getPos(eventObj_,"Left")+0;
//		obj.style.pixelTop=getPos(eventObj_,"Top")+0;
//		obj.style.left=event.clientX + 'px';
//		 var filter=obj.filters;
//		 if(filter==null) //用于Chrome等浏览器
//		 {
//		   obj.style.opacity=100/100.0; //注意透明度取值为0~1之间
//		 }
//		 else//用于IE、360等浏览器
//		 {
//			obj.filters[0].transition =19 ; 
//			obj.filters[0].Apply();
//	  		obj.filters[0].Play();
//		 }
//		obj.style.visibility = "visible"; 
//		obj1.style.visibility = "visible"; 
//}
